<template>
  <div class="hello">
    <h1 class="h1">{{ msg }}</h1>
    <h2 class="h2">jquery</h2>
  </div>
</template>

<script>
import {ValidSession} from '../api/api'
export default {
  name: "HelloWorld",
  data() {
    return {
      msg: "GWW"
    };
  },
  mounted() {
    console.log(1);
    console.log($(".h1").html());
    this.democlick();
  },
  methods: {
    democlick() {
      console.log($(".h2").html());


      let session = JSON.stringify("hahahhahaha");

      
      ValidSession(session).then(res=>{
        console.log(res)
      }).catch(err=>{})


      // this.$http
      //   .post("http://120.55.53.251:8097/api/SSO/ValidSession", asdasd, {
      //     headers: {
      //       "Content-Type": "application/json;chartset=UTF-8"
      //     }
      //   })
      //   .then(res => {
      //     console.log(res);
      //   })
      //   .catch(err => {});
    }
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang='scss'>
@import '../common/main';
.hello {
  h1 {
    color: #f00;
    font-size: rem(24)
  }
}
</style>
